<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ch">
<head>
    <meta charset="UTF-8">
    <title>学生</title>
</head>
<body>
    <ul>
        <li th:each="item,eachInfo:${list}" th:object="${item}">
            <div th:text="${eachInfo.count}"></div>
            <div th:text="*{name}"></div>
            <div th:text="*{age}"></div>
            <div th:text="*{sex}"></div>
        </li>
    </ul>
</body>
</html>